#pragma IndependentModule = LoadProcedures_Shawn
//SetIgorHook IgorStartOrNewHook

Menu "Spectrometry"
	Submenu "Load\Unload Package"
		"Load Spectrometry Package", /Q, Load_Spectrometry_Procedures()
	End
End

Execute/P/Q/Z "COMPILEPROCEDURES "

Function Load_Spectrometry_Procedures()
Execute/P/Q/Z "INSERTINCLUDE \"Convolution\""
Execute/P/Q/Z "INSERTINCLUDE \"Data_Analysis\""
Execute/P/Q/Z "INSERTINCLUDE \"Factor_Analysis\""
Execute/P/Q/Z "INSERTINCLUDE \"hard_XPS_processing\""
Execute/P/Q/Z "INSERTINCLUDE \"maxent\""
Execute/P/Q/Z "INSERTINCLUDE \"Optimization\""
Execute/P/Q/Z "INSERTINCLUDE \"Spectrometry\""
Execute/P/Q/Z "INSERTINCLUDE \"update_Procedures\""
Execute/P/Q/Z "INSERTINCLUDE \"Utility_Procedures\""
Execute/P/Q/Z "INSERTINCLUDE \"xps_conv\""
Execute/P/Q/Z "INSERTINCLUDE \"XPSbackground\""
Execute/P/Q/Z "INSERTINCLUDE \"autoSave_v1\""
Execute/P/Q/Z "INSERTINCLUDE \"WindowsCommand\""

Execute/P/Q/Z "COMPILEPROCEDURES "
end

Function Unload_Spectrometry_Procedures()
Execute/P/Q/Z "DELETEINCLUDE \"Convolution\""
Execute/P/Q/Z "DELETEINCLUDE \"Data_Analysis\""
Execute/P/Q/Z "DELETEINCLUDE \"Factor_Analysis\""
Execute/P/Q/Z "DELETEINCLUDE \"hard_XPS_processing\""
Execute/P/Q/Z "DELETEINCLUDE \"maxent\""
Execute/P/Q/Z "DELETEINCLUDE \"Optimization\""
Execute/P/Q/Z "DELETEINCLUDE \"Spectrometry\""
Execute/P/Q/Z "DELETEINCLUDE \"update_Procedures\""
Execute/P/Q/Z "DELETEINCLUDE \"Utility_Procedures\""
Execute/P/Q/Z "DELETEINCLUDE \"xps_conv\""
Execute/P/Q/Z "DELETEINCLUDE \"XPSbackground\""
Execute/P/Q/Z "DELETEINCLUDE \"conv\""
Execute/P/Q/Z "DELETEINCLUDE \"autoSave_v1\""
Execute/P/Q/Z "DELETEINCLUDE \"WindowsCommand\""

Execute/P/Q/Z "COMPILEPROCEDURES "
end